<?php

require_once '../include/common.inc.php';

if (!checkAdmin()) {
    header("LOCATION:index.php");
    exit;
}

$menu_index = 4;
$page_title = 'JANSEN';
$guide_message = 'System | Webmaster Email';
$alert_message = '';
$email = '';

getMyParam('action');
getMyParam('webmaster_email');
getMyParam('webmaster_name');
getMyParam('webmaster_emailzh');
getMyParam('webmaster_namezh');
getMyParam('webmaster_emailru');
getMyParam('webmaster_nameru');

if ($action == "update") {
	SetSystemtbValue('webmaster_email', $webmaster_email,$webmaster_emailzh,$webmaster_emailru);
	SetSystemtbValue('webmaster_name', $webmaster_name,$webmaster_namezh,$webmaster_nameru);
    $alert_message = 'update succeed.';
}

$system_ary = getSystemValue();
$out_email = $system_ary['webmaster_emailen'];
$out_name = $system_ary['webmaster_nameen'];

$out_emailzh = $system_ary['webmaster_emailzh'];
$out_namezh = $system_ary['webmaster_namezh'];

$out_emailru = $system_ary['webmaster_emailru'];
$out_nameru = $system_ary['webmaster_nameru'];

$debug = 1;
debuginfo();

include_once(JANSEN_ROOT . 'admin/menu_list.php');
require_once PrintEot('a_header');
require_once PrintEot('a_s_emailset');
require_once PrintEot('a_footer');

?>